package com.xindacloud.sms.adapter.service.business.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xindacloud.sms.adapter.dao.SmsProjectMemberMapper;
import com.xindacloud.sms.adapter.entity.SmsProjectMember;
import com.xindacloud.sms.adapter.service.business.ISmsProjectMemberService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Objects;


@Slf4j
@Service
public class SmsProjectMemberServiceImpl extends ServiceImpl<SmsProjectMemberMapper, SmsProjectMember> implements ISmsProjectMemberService {


    @Override
    public List<SmsProjectMember> queryProjectMemberInfoById(Integer userId) {
        return lambdaQuery()
                .eq(Objects.nonNull(userId), SmsProjectMember::getUserId, userId)
                .list();
    }
}
